package com.qyhl.webtv.module_microvideo.shortvideo.shoot.upload;


import com.qyhl.webtv.commonlib.entity.UpTokenBean;

public class ShortVideoUploadPresenter implements ShortVideoUploadContract.ShortVideoUploadPresenter {
    private ShortVideoUploadActivity mView;
    private ShortVideoUploadModel mModel;

    ShortVideoUploadPresenter(ShortVideoUploadActivity mView) {
        this.mView = mView;
        this.mModel = new ShortVideoUploadModel(this);
    }

    @Override
    public void getToken(boolean isUpload) {
        mModel.getToken(isUpload);
    }

    @Override
    public void getTokenSuccess(UpTokenBean data, boolean isUpload) {
        mView.getTokenSuccess(data, isUpload);
    }

    @Override
    public void getTokenError(boolean isUpload) {
        mView.getTokenError(isUpload);
    }

    @Override
    public void upLoadData(String title, String videoUrl, String logo, String phone, String tagId, String actId) {
        mModel.upLoadData(title, videoUrl, logo, phone, tagId, actId);
    }

    @Override
    public void upLoadSuccess(String msg) {
        mView.upLoadSuccess(msg);
    }

    @Override
    public void upLoadError(String msg) {
        mView.upLoadError(msg);
    }
}
